﻿
using SqlSugar;
using System.ComponentModel.DataAnnotations;

namespace HiSportApplet.Core.Entity.Bas
{

    /// <summary>
    /// 场地类型
    /// </summary>
    [SugarTable(null, "场地类型")]
    public class BasSiteType :IDeletedFilter
    {

        /// <summary>
        /// ID
        /// </summary>
        [SugarColumn(ColumnDescription = "ID")]
        public long  Id { get; set; }


        /// <summary>
        /// OrgId
        /// </summary>
        [SugarColumn(ColumnDescription = "创建者部门Id")]
        public  long? CreateOrgId { get; set; }

        /// <summary>
        /// 运动类型Code（字典值）
        /// </summary>
        [SugarColumn(ColumnDescription = "运动类型Code", DefaultValue = "", IsNullable = false, Length = 50)]
        public string SportsEventsTypeCode { get; set; }

        /// <summary>
        ///  场地类型名称
        /// </summary>
        [SugarColumn(ColumnDescription = "场地类型名称", Length = 50, DefaultValue = "", IsNullable = false)]
        public string SiteTypeName { get; set; }


        /// <summary>
        /// 时间间隔-分钟为准
        /// </summary>
        [SugarColumn(ColumnDescription = "时间间隔", DefaultValue = "30", IsNullable = false)]
        public int Interval { get; set; }

        /// <summary>
        /// 开始-看板时间
        /// </summary>
        [SugarColumn(ColumnDescription = "开始-看板时间", DefaultValue = "0:00", IsNullable = false)]
        [Required, StringLength(20)]
        public string StartKanbanTime { get; set; }

        /// <summary>
        /// 结束-看板时间
        /// </summary>
        [SugarColumn(ColumnDescription = "结束-看板时间", DefaultValue = "24:00", IsNullable = false)]
        [Required, StringLength(20)]
        public string EndKanbanTime { get; set; }


        /// <summary>
        ///  图片地址
        /// </summary>
        [SugarColumn(ColumnDescription = "图片地址", Length = 500, DefaultValue = "", IsNullable = false)]
        public string Image { get; set; }

        /// <summary>
        /// 排序序号
        /// </summary>
        [SugarColumn(ColumnDescription = "排序序号", DefaultValue = "0", IsNullable = false)]
        public int Seq { get; set; }
        /// <summary>
        /// 是否删除
        /// </summary>
        public bool IsDelete { get; set; }
    }
}